package com.etooling.pdm.thread;

import com.etooling.framework.entity.ImportDataBatch;
import com.etooling.pdm.service.BomService;

/**
 * @author dan
 * @date 2024/5/11 11:38
 */
public class UploadBomExcelThread extends Thread {
    BomService bomService;
    ImportDataBatch importDataBatch;
    String loginId;
    String companyId;
    String bomName;
    String bomMemo;


    public UploadBomExcelThread(BomService bomService,
                                ImportDataBatch importDataBatch,
                                String loginId,
                                String companyId,
                                String bomName,
                                String bomMemo) {
        this.bomService = bomService;
        this.importDataBatch = importDataBatch;
        this.loginId = loginId;
        this.companyId = companyId;
        this.bomName = bomName;
        this.bomMemo = bomMemo;
    }

    @Override
    public void run() {
        this.bomService.uploadBomExcel(this.importDataBatch, this.loginId, this.companyId, this.bomName, this.bomMemo);
    }

}
